package com.sporadic.desk;

import advice.AdviceException;
import com.sporadic.desk.dao.UserInfoDao;
import com.sporadic.desk.pojo.UserInfo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Import;


/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-10-15 12:05
 **/
@EnableEurekaClient
@MapperScan("com.sporadic.desk.dao")
//@EnableFeignClients //服务间调用客户端
//@EnableHystrix  //开启熔断器
@SpringBootApplication
@EnableFeignClients
@Import(AdviceException.class) //将公用的异常处理类交给spring管理
public class DeskStart {
    public static void main(String[] args) {
        SpringApplication.run(DeskStart.class, args);
    }
}
